package com.hoshiibuy.purchase.entity.param;

import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.NonNull;

import java.io.Serializable;
/**
* <p>
* 新增参数
* </p>
*
* @author campchen
* @since 2019-05-15
*/

@Data
@ApiModel(value="新增", description="新增")
public class PodetailAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "poid", value = "采购单ID", dataType = "java.lang.Long",example = "")
    private Long poid;
    
    @ApiModelProperty(name = "orderDetailid", value = "主订单明细ID", dataType = "java.lang.Long", example = "")
    private Long orderDetailid;
    
    @ApiModelProperty(name = "spuName", value = "商品名称", dataType = "java.lang.String",required = true, example = "1")
    @NonNull
    private String spuName;
    
    @ApiModelProperty(name = "skuName", value = "规格", dataType = "java.lang.String", example = "")
    private String skuName;
    
    @ApiModelProperty(name = "spuNo", value = "sp uno", dataType = "java.lang.String", example = "")
    private String spuNo;
    
    @ApiModelProperty(name = "spuId", value = "spu id", dataType = "java.lang.Long", example = "")
    private Long spuId;
    
    @ApiModelProperty(name = "skuNo", value = "SKU NO", dataType = "java.lang.String",required = true, example = "1")
    @NonNull
    private String skuNo;
    
    @ApiModelProperty(name = "skuId", value = "SKU ID", dataType = "java.lang.BigDecimal",required = true, example = "1")
    @NonNull
    private BigDecimal skuId;
    
    @ApiModelProperty(name = "rate2", value = "税率", dataType = "java.lang.BigDecimal",required = true, example = "1")
    @NonNull
    private BigDecimal rate2;
    
    @ApiModelProperty(name = "rateamount", value = "税额", dataType = "java.lang.BigDecimal",required = true, example = "1")
    @NonNull
    private BigDecimal rateamount;
    
    @ApiModelProperty(name = "amount", value = "金额", dataType = "java.lang.BigDecimal",required = true, example = "1")
    @NonNull
    private BigDecimal amount;
    
    @ApiModelProperty(name = "unit", value = "商品单位", dataType = "java.lang.String", example = "")
    private String unit;
    
    @ApiModelProperty(name = "sku", value = "规格", dataType = "java.lang.String", example = "")
    private String sku;
    
    @ApiModelProperty(name = "unitprice", value = "单价", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal unitprice;
    
    @ApiModelProperty(name = "quantity", value = "数量", dataType = "java.lang.Long", example = "")
    private Long quantity;
    
    @ApiModelProperty(name = "status", value = "状态 0-初始 1-已出库 2-已作废", dataType = "java.lang.Integer", example = "")
    private Integer status;
    
    @ApiModelProperty(name = "shippongcost", value = "运费", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal shippongcost;
    
    @ApiModelProperty(name = "othercost", value = "其他费用", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal othercost;
    
    @ApiModelProperty(name = "rate", value = "税率", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal rate;
    
    @ApiModelProperty(name = "ratefee", value = "税额", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal ratefee;
    
    @ApiModelProperty(name = "totalamount", value = "合计金额", dataType = "java.lang.BigDecimal", example = "")
    private BigDecimal totalamount;
    

}
